package com.mirana.module.common.model.dictpm;

import com.mirana.frame.base.model.BaseModel;
import com.mirana.frame.db.base.anno.ColumnPlus;
import com.mirana.frame.db.base.anno.FKPlus;
import com.mirana.frame.db.base.anno.Notes;
import com.mirana.frame.db.base.anno.TablePlus;
import lombok.Data;

@Data
@Notes("商机_方案_中间表")
@TablePlus(name = "dict_business_doc")
public class DictBusinessDoc extends BaseModel {

    @Notes("方案类别。1引导方案，2投标方案，3其他方案,4方案支撑")
    @ColumnPlus(nullable = false, length = "2")
    private int type;

    @Notes("商机id")
    @ColumnPlus(nullable = false)
    @FKPlus(tableClass = DictBusiness.class, column = "id")
    private Long business_id;

    @Notes("方案id")
    @ColumnPlus(nullable = false)
    @FKPlus(tableClass = DictPlanDoc.class, column = "id")
    private Long plandoc_id;

}
